<%@ page import="com.tianxiabuyi.utils.ErrcodeUtil" %>
<%@ page import="com.tianxiabuyi.utils.UserUtil" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/validate.jsp"%>
<%
    Integer userId = input.getInt("user_id", -1);
    if (userId == -1) {
        ErrcodeUtil.setErrcode(msg, ErrcodeUtil.NO_RESULT);
        Tools.encryptPrint(out, msg);
        return;
    }
    Map userInfoMap = UserUtil.getUserInfo(hospital, userId);
    if (userInfoMap == null || userInfoMap.isEmpty()) {
        ErrcodeUtil.setErrcode(msg, ErrcodeUtil.NO_RESULT);
    } else {
        msg.put("data", userInfoMap);
    }
    Tools.encryptPrint(out, msg);
%>